        <?php        
session_start();      
include 'header.php';
include_once 'data_access.php';
$connect=new database_access();
$connect->connect();
        echo '<div id="left">	<div class="left_top"></div>';
        include 'student.php';  
if(isset ($_SESSION['personalnumber'])){
$student=new student();
$student->name=$student->GetName($_SESSION['personalnumber']);
echo '  <br><br> <center><p  style="font-size: large; color: #990000; " >
مرحبا بك   '.$student->name. 
'</p></center>';
}

$bulding_id=$_GET['buildingid'];
$student=new student();
$accepted=$student->ShowAccepted($bulding_id);
echo '<center>
<h1>
    الطلبة المقبولين بالمدينة الجامعية مبني 
    '.$bulding_id.
    '</h1>  </center> ';
    echo '<table><tr><td>التقدير</td><td>المحافظة</td><td>الكلية</td><td>الاسم</td></tr>';
while ($row1 = mysql_fetch_array($accepted)){
    $name=$row1['student_name'];
    $city=$row1['student_country'];
    $appreciation=$row1['student_appreciation'];
    $faculty=$row1['student_faculty'];
echo '<tr><td>'.$appreciation.'</td><td>'.$city.'</td><td>'.$faculty.'</td><td>'.$name.'</td></tr>'; 
}
echo '</table>';
      echo '</div><div id="main_bot"></div>';
        include 'footer.php';  
        ?>